 {hd:goods action="lists" catid="$id" brand_id="$brand_id" price="$price" goods_ids="$_goods_ids" num="16" where="$_where" page="$page" order="$_order"} 
  {loop $data $r}
<li> <a href="{U('Goods/Index/detail', array('id'=> $r[id]))}"> {if empty($r[small_pics]) && empty($r[list_img])} <img src="{THEME_PATH}images/nopic.jpg"> {elseif empty($r[small_pics])}
  <?php $list_img = str2arr($r['list_img']);?>
  <img src="{$list_img[0]}"> {else}
  <?php $small_pics = str2arr($r[small_pics]);?>
  <img src="{$small_pics[0]}"> {/if} 
  <p> <span>{MONUNIT}{$r[shop_price]}</span> </p><span>{$r[name]}</span>
  </a> </li>
{/loop}
  {/hd} 